import request from '../utils/request'

/**
 * 用户登陆
 * @returns {never}
 * @constructor
 * @param data
 */
export function UserLogin(data){
    return request({
        url:'user/login',
        method: 'post',
        data,
    })
}

/**
 * 获取用户信息
 * @param token
 * @returns {never}
 * @constructor
 */
export function GetUserInfo(token) {
    return request({
        url:'user/getUserInfo',
        method: 'get',
        token
    })
}